<!-- 下级会员 -->
<?php $this->load->view('home/layout/header') ?>
<div class="members widthMax">
    <header class="fenrui-head am-cf">
        <div class="return am-fl">
            <a href="javascript:goHistoryBack('<?php echo site_url('home/ucenter/index');?>');"><i class="iconfont icon-zuojiantou"></i></a>
        </div>
        <div class="title am-fl">
            <div class="title-tab flex">
                <a class="flex-1 active" href="<?php echo site_url('home/memberprofit/juniorMember');?>">下级会员</a>
                <a class="flex-1" href="<?php echo site_url('home/memberprofit/grid');?>">分润统计</a>
            </div>
        </div>
        <div class="more am-fl">
<!--            <span class="member_reset">重置</span>-->
<!--            <i><img src="/skins/home/images/members.png"></i>-->
        </div>
    </header>
    <div class="search">
        <div class="search-box">
            <form id="profitSearchForm" action="<?php echo site_url('home/memberprofit/juniorMember');?>" method="post">
                <input type="text" name="search" placeholder="请输入中奖者用户名/昵称关键词" value="<?php echo !empty($search) ? $search : '';?>" />
<!--                <span>清空</span>-->
                <i class="iconfont icon-sousuo"></i>
            </form>
        </div>
    </div>
    <?php if ($juniorMember->num_rows() >0): ?>
        <div class="members-list">
            <ul class="am-cf member-profit-list">
                <?php $this->load->view('home/memberprofit/ajaxJuniorMember'); ?>
            </ul>
        </div>
    <?php else:?>
        <!-- 没有结果 -->
        <div class="not-content">
            <img src="/skins/home/images/not-content.png" />
            <p>您还没有下级会员</p>
        </div>
    <?php endif ?>
</div>
<div class="member-profit-more sec-load am-scrollspy-init <?php echo $more ? '' : 'am-hide'; ?>">
    <i class="iconfont am-animation-spin icon-jiazaizhong"></i>
</div>
<?php if ($juniorMember->num_rows() !=0): ?>
<div class="no-more <?php echo $more ? 'am-hide' : ''; ?>">
    没有更多了
</div>
<?php endif ?>
<div class="retunTop"><img src="/skins/home/images/returnTop.png"></div>
<?php $this->load->view('home/layout/footer'); ?>